package com.hcvsa;

import hcvs.hcvsa.HCVSA;
import hcvs.hcvsa.SystemEvent;

public class MyHCVSA {

    private static HCVSA myHCVSA;
    /**
     * 登录结果
     */
    private static int loginResult;
    /**
     * 登录状态
     */
    private static int loginStatus;
    /**
     * 会议室登录结果
     */
    private static int meetingLoginResult;
    /**
     * 会议室登录状态
     */
    private static int meetingLoginStatus;

    public static synchronized HCVSA getInstance() {
        if (myHCVSA == null) {
            loginParamnit();
            myHCVSA = new HCVSA();
        }
        return myHCVSA;
    }

    public static void loginParamnit() {
        loginResult = -1;
        loginStatus = SystemEvent.HCVS_LOGIN_STATUS_NO_LOGIN;
        meetingLoginResult = -1;
        meetingLoginStatus = SystemEvent.HCVS_LOGIN_STATUS_NO_LOGIN;
    }

    public static int getLoginResult() {
        return loginResult;
    }

    static void setLoginResult(int loginResult) {
        MyHCVSA.loginResult = loginResult;
    }

    public static int getLoginStatus() {
        return loginStatus;
    }

    static void setLoginStatus(int loginStatus) {
        MyHCVSA.loginStatus = loginStatus;
    }

    public static int getMeetingLoginResult() {
        return meetingLoginResult;
    }

    static void setMeetingLoginResult(int meetingLoginResult) {
        MyHCVSA.meetingLoginResult = meetingLoginResult;
    }

    public static int getMeetingLoginStatus() {
        return meetingLoginStatus;
    }

    static void setMeetingLoginStatus(int meetingLoginStatus) {
        MyHCVSA.meetingLoginStatus = meetingLoginStatus;
    }

}
